Platform Explorer / Nuxeo Platform 11.3

Contribution org.nuxeo.ecm.user.registration.contentviews.contrib--contentViews

This contribution is part of XML component org.nuxeo.ecm.user.registration.contentviews.contrib inside nuxeo-platform-user-registration-web-11.3.jar /OSGI-INF/user-registration-contentviews-contrib.xml

Extension Point

Extension point contentViews of component ContentViewService.

Registration Order

3
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <contentView name="user_requests_view">
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>
              SELECT * FROM Document WHERE ecm:mixinType = 'UserRegistration' AND ecm:isVersion = 0
            </pattern>
            <pageSize>20</pageSize>
            <sort ascending="false" column="dc:created"/>
          </coreQueryPageProvider>
    
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
            <event>requestDocumentsChanged</event>
          </refresh>
          <cacheKey>only_one_cache</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="user_requests_listing_layout" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>CURRENT_USER_REQUESTS</selectionList>
          <actions category="CURRENT_USER_REQUESTS_GLOBAL"/>
    
        </contentView>
  • <contentView name="local_user_requests_view">
    
          <coreQueryPageProvider>
            <property name="coreSession">#{documentManager}</property>
            <pattern>
              SELECT * FROM Document WHERE ecm:mixinType = 'UserRegistration' AND docinfo:documentId = ? AND ecm:isVersion = 0 AND
              ecm:currentLifeCycleState != 'validated'
            </pattern>
            <parameter>#{navigationContext.currentDocument.id}</parameter>
            <pageSize>20</pageSize>
            <sort ascending="false" column="dc:created"/>
          </coreQueryPageProvider>
    
          <refresh>
            <event>documentChanged</event>
            <event>documentChildrenChanged</event>
            <event>requestDocumentsChanged</event>
          </refresh>
          <cacheKey>only_one_cache</cacheKey>
          <cacheSize>1</cacheSize>
    
          <resultLayouts>
            <layout iconPath="/icons/document_listing_icon.png" name="user_requests_listing_layout" title="document_listing" translateTitle="true"/>
          </resultLayouts>
    
          <selectionList>CURRENT_USER_REQUESTS</selectionList>
          <actions category="CURRENT_USER_REQUESTS_LOCAL"/>
    
        </contentView>

XML Source

<extension point="contentViews" target="org.nuxeo.ecm.platform.ui.web.ContentViewService">

    <contentView name="user_requests_view">

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT * FROM Document WHERE ecm:mixinType = 'UserRegistration' AND ecm:isVersion = 0
        </pattern>
        <pageSize>20</pageSize>
        <sort ascending="false" column="dc:created"/>
      </coreQueryPageProvider>

      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
        <event>requestDocumentsChanged</event>
      </refresh>
      <cacheKey>only_one_cache</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="user_requests_listing_layout" title="document_listing" translateTitle="true"/>
      </resultLayouts>

      <selectionList>CURRENT_USER_REQUESTS</selectionList>
      <actions category="CURRENT_USER_REQUESTS_GLOBAL"/>

    </contentView>

    <contentView name="local_user_requests_view">

      <coreQueryPageProvider>
        <property name="coreSession">#{documentManager}</property>
        <pattern>
          SELECT * FROM Document WHERE ecm:mixinType = 'UserRegistration' AND docinfo:documentId = ? AND ecm:isVersion = 0 AND
          ecm:currentLifeCycleState != 'validated'
        </pattern>
        <parameter>#{navigationContext.currentDocument.id}</parameter>
        <pageSize>20</pageSize>
        <sort ascending="false" column="dc:created"/>
      </coreQueryPageProvider>

      <refresh>
        <event>documentChanged</event>
        <event>documentChildrenChanged</event>
        <event>requestDocumentsChanged</event>
      </refresh>
      <cacheKey>only_one_cache</cacheKey>
      <cacheSize>1</cacheSize>

      <resultLayouts>
        <layout iconPath="/icons/document_listing_icon.png" name="user_requests_listing_layout" title="document_listing" translateTitle="true"/>
      </resultLayouts>

      <selectionList>CURRENT_USER_REQUESTS</selectionList>
      <actions category="CURRENT_USER_REQUESTS_LOCAL"/>

    </contentView>

  </extension>